package aex.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class testSprin {
	
	public static void main(String[] args) {
		ApplicationContext ac=new ClassPathXmlApplicationContext("beans.xml");
		
		/*AlbumService aService= (AlbumService) ac.getBean(AlbumService.SERVICE_NAME);
		ArticleCategory cate=aService.findCategroyById(49);
		System.out.println(cate.getAcParent().getAcName());
		aService.updateArticleItem(cate);
		
		
		ArticleService artService=
		(ArticleService) ac.getBean(ArticleService.SERVICE_NAME);
		PageBean<Article> pageBean=new PageBean<Article>();
		pageBean.setPageNow(1);
		pageBean.setPageSize(100);
		pageBean=artService.findCusomerArtList(pageBean, 47);
		for (Article art : pageBean.getObjList()) {
			System.out.println(art.getArtTitle()+"  "+art.getArtToTopTime());
		}
		
		*/
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	}
}
